package szxy.base.day07;

public class Student3 {
    String id;
    String name;
    int age;

    public void eat() {
        System.out.println("吃饭");
    }

    public void study() {
        System.out.println("学习");
    }

    public void playGame(String name) {
        System.out.println("玩游戏：" + name);
    }
}



class Student3Demo{
    public static void main(String[] args) {
        Student3 s3 = new Student3();
        s3.id="zmm101";
        s3.name="c罗";
        s3.age=40;
        System.out.println("学号："+s3.id+",姓名："+s3.name+",年龄:"+s3.age);
        s3.eat();
        s3.study();
        s3.playGame("实况足球");
        System.out.println("=====================================================");

        Student3 s4 = new Student3();
        s4.id="zmm102";
        s4.name="梅西";
        s4.age=36;
        System.out.println("学号："+s4.id+",姓名："+s4.name+",年龄:"+s4.age);
        s4.eat();
        s4.study();
        s4.playGame("日本走狗");

    }
}